package com.atguigu.spzx.model.vo.product;

import com.atguigu.spzx.model.entity.product.Product;
import com.atguigu.spzx.model.entity.product.ProductSku;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * @author LT
 * @create 2024-03-26-19:20
 */
@Data
public class ProductItemVO {

    private ProductSku productSku;
    private Product product;
    private List<String> sliderUrlList;
    private List<String> detailsImageUrlList;
    //[{"key":"颜色","valueList":["白色"]},{"key":"内存","valueList":["8G","12G"]}]
    // 自定义VO类
    private List<ProductSpecVO>  specValueList;
    // { "绿色 + 8G + 128G + 不锈钢": 18 ,"绿色 + 12G + 128G + 不锈钢": 19  }   sku所属的spu下所有的sku的规格属性值 映射skuId的map
    private Map<String,Long> skuSpecValueMap;

}
